/**
 * 
 */
package com.song.day06.ch6_7;

import java.util.concurrent.ThreadLocalRandom;

/**
 * @author Administrator
 *
 */
public class TaskLocalRandom implements Runnable{
	
	
	
	
	public TaskLocalRandom() {
		ThreadLocalRandom.current();
	}

	public void run() {
		
		String name = Thread.currentThread().getName();
		
		for(int i=0; i<10 ;i++)
		{
			System.out.printf(" %s  :%d \n",name,ThreadLocalRandom.current().nextInt(10));
			
		}
		
	}
	
	
}
